using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace SellAvi.Model
{
    [Table("TCustomParams")]
    public partial class TCustomParam
    {
        public TCustomParam()
        {
            CustomChildParams = new HashSet<TCustomParam>();
        }

        [Key]
        //[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        //[Key]
        public int CustomParamId { get; set; }
        public int? TParam_Id { get; set; }
        public virtual TParam Param { get; set; }

        [Required]
        public int CustomParamValue { get; set; }

        public int? CustomParentParamId { get; set; }
        public TCustomParam CustomParentParam { get; set; }
        public virtual ICollection<TCustomParam> CustomChildParams { get; set; }
        
        public string CustomParamName { get; set; } 
        public string CustomParamLatinName { get; set; } 

       


    }
}
